package Model;
/**
 * Mule class
 * @author Josh, Philip
 *
 */
public class Mule {
	
	private Player owner;
	private String type; //'Food', 'Energy', 'Smithore'
	/**
	 * constructor for mule. 
	 * @param muleType: Standard is 'Food', 'Energy', 'Smithore'
	 */
	public Mule(String muleType) {
		
		// Validate the type
		if (muleType == "Food") {
			type = muleType;
		}
		
		else if (muleType == "Energy") {
			type = muleType;
		}
		
		else if (muleType == "Smithore") {
			type = muleType;
		}
		
		else {
			System.out.println("Invald mule type!!");
		}
			
	}
	
	/**
	 * returns the type (formatted as a string) of a mule
	 * @return string: the type of the mule
	 */
	public String getType() {
		return type;
	}
	
	/**
	 * Returns the cost of the mule according to its type.
	 * @return cost;
	 */
	public int getCost() {
		
		if (type == "Food") {
			return 100 + 25; //Base price is 100 
		}
		
		else if (type == "Energy") {
			return 100 + 50;
		}
		
		else {
			return 100 + 75;
		}
				
	}

}
